package ru.linnenson.darshana.infrastructure.persistence.models;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

@Data
@Entity
@ToString(callSuper = true)
@Table(name = "users")
@EqualsAndHashCode
@NoArgsConstructor
@AllArgsConstructor
public class UserStore {

  @Id
  @GeneratedValue(strategy = GenerationType.IDENTITY)
  Integer id;

  String username;

  String password;
}
